﻿using System;
using System.Collections.Generic;
using System.Text;
using Ghasam.Business.DAO;
using Ghasam.Business.Domain.Entity;

namespace Ghasam.Business.Services.Impl {
    public class EmployeePaymentService : IEmployeePaymentService {

        public IEmployeePaymentDao employeePaymentDao { get; set; }
        
        #region IEmployeePaymentService Members

        public Ghasam.Business.Domain.Entity.EmployeePayment NewPayment(EmployeePayment employeePayment) {
            return employeePaymentDao.SaveOrUpdate(employeePayment);
        }

        public Ghasam.Business.Domain.Entity.EmployeePayment UpdatePayment(EmployeePayment employeePayment) {
            return employeePaymentDao.SaveOrUpdate(employeePayment);
        }

        public void DeletePayment(EmployeePayment employeePayment) {
            employeePaymentDao.Delete(employeePayment);
        }

        public IList<EmployeePayment> GetEmployeePayments(DateTime startDate, DateTime endDate) {
            return null;
        }

        #endregion
    }
}
